<?php
require_once('Header.php'); 
?>     

<h1> Choose Realm: </h1>

<fb:iframe style="width: 100%; height: 350px;" src="http://swankestlabs.homelinux.com/smallsmallworld/test.php" smartsize="false" frameborder="no">
</fb:iframe>

<?php
//$string = "red";
//$sql = "INSERT INTO realms values (DEFAULT, 1,'$string', 'loooocationtext', 'test realm')";
//$db->Execute($sql);
$result = $db->Execute("SELECT realm_id,realm_name FROM realms");
 if ($result === false) die("failed");  
 while (!$result->EOF) {
    for ($i=0, $max=$result->FieldCount(); $i < $max; $i++)
    {
           print "i=" . $i . " ";
           print $result->fields[$i].' ';
    }
    $result->MoveNext();
    print "<br>\n";
 } 
?>
